//
//  MYAccountTool.h
//  奇闻
//
//  Created by 似水灵修 on 14-11-26.
//  Copyright (c) 2014年 MingYueGuCheng. All rights reserved.
// 存取帐户信息

#import <Foundation/Foundation.h>
#import "MYAccount.h"
@interface MYAccountTool : NSObject
/**
 *  存储帐户信息
 */
+ (void)save:(MYAccount *)account;
/**
 *  读取帐户信息
 */
+ (MYAccount *)account;
/**
 *  获取accessToken
 *
 *  @param code    requestToken
 *  @param success 成功的回调
 *  @param failure 失败的回调
 */
+ (void)accessTokenWithCode:(id)code
                    success:(void (^)())success
                    failure:(void (^)(NSError *error))failure;
@end
